package com.yunji.news.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunji.news.entity.AdmissionResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 录取结果Mapper
 *
 * @author yunji
 * @since 2024-11-26
 */
@Mapper
public interface AdmissionResultMapper extends BaseMapper<AdmissionResult> {

    /**
     * 分页查询录取结果
     */
    IPage<AdmissionResult> selectAdmissionPage(
            Page<AdmissionResult> page,
            @Param("schoolId") Long schoolId,
            @Param("majorId") Long majorId,
            @Param("admissionStatus") String admissionStatus,
            @Param("keyword") String keyword
    );
}